/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package holdem.pokergui;
import javax.swing.*;

/**
 *
 * @author Anders
 */


public class StartForm extends JPanel
{
    private JTextField txtName, txtIP, txtMoney;

    public StartForm()
    {
	txtName = new JTextField("Hello World", 6);
	txtMoney = new JTextField("100", 6);
        txtIP = new JTextField("localhost", 6);

        setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

        JPanel pnlName = new JPanel();
	pnlName.add(new JLabel("Player Name: "));
	pnlName.add(txtName);
	add(pnlName);

        JPanel pnlMoney = new JPanel();
	pnlMoney.add(new JLabel("Money:               "));
	pnlMoney.add(txtMoney);
	add(pnlMoney);

        JPanel pnlIP = new JPanel();
	pnlIP.add(new JLabel("Server IP:        "));
	pnlIP.add(txtIP);
	add(pnlIP);
    }

    public String getName()
    {
	return txtName.getText();
    }

    public String getIP()
    {
	return txtIP.getText();
    }

    public int getMoney()
    {
	return Integer.valueOf(txtMoney.getText());
    }
}